package com.example.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.demo.dao.MovieDao;
import com.example.demo.entity.Movie;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.example.demo.service.MovieService;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.sql.Wrapper;
import java.util.List;

/**
 * 服务接口实现
 *
 * @author kancy
 * @since 2021-06-01 09:44:00
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class MovieServiceImpl implements MovieService {
    private final MovieDao movieDao;

    @Override
    public List<Movie> getMovieList() {
        //QueryWrapper<Movie> wrapper=new QueryWrapper<>();
        //wrapper.eq("id",2);
        return movieDao.list();
    }
}